﻿#pragma warning disable 649    // disable compiler warnings about unassigned fields

namespace AnnouncementServices
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.ComponentModel.DataAnnotations;
    using System.Linq;
    using System.Web.Ria;
    using System.Web.Ria.Data;
    using System.Web.DomainServices;


    // The MetadataTypeAttribute identifies AnnouncementMetadata as the class
    // that carries additional metadata for the Announcement class.
    [MetadataTypeAttribute(typeof(Announcement.AnnouncementMetadata))]
    public partial class Announcement
    {

        // This class allows you to attach custom attributes to properties
        // of the Announcement class.
        //
        // For example, the following marks the Xyz property as a
        // required field and specifies the format for valid values:
        //    [Required]
        //    [RegularExpression("[A-Z][A-Za-z0-9]*")]
        //    [StringLength(32)]
        //    public string Xyz;
        internal sealed class AnnouncementMetadata
        {

            // Metadata classes are not meant to be instantiated.
            private AnnouncementMetadata()
            {
            }

            public int CreatedByUser;

            public Nullable<DateTime> CreatedDate;

            public string Description;

            public Nullable<DateTime> ExpireDate;

            public string ImageSource;

            public int ItemID;

            public int ModuleID;

            public Nullable<DateTime> PublishDate;

            public string Title;

            public string URL;

            public Nullable<int> ViewOrder;
        }
    }
}

#pragma warning restore 649    // re-enable compiler warnings about unassigned fields
